package com.bbz.crawler.core.commen.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author binbin.a.zhang123
 * @since 2018-05-29
 */
@TableName("crawler_result_detail")
public class CrawlerResultDetail extends Model<CrawlerResultDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String key;
    private String value;
    @TableField("crawler_result_id")
    private Long crawlerResultId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getCrawlerResultId() {
        return crawlerResultId;
    }

    public void setCrawlerResultId(Long crawlerResultId) {
        this.crawlerResultId = crawlerResultId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CrawlerResultDetail{" +
        "id=" + id +
        ", key=" + key +
        ", value=" + value +
        ", crawlerResultId=" + crawlerResultId +
        "}";
    }
}
